package com.aaa.service.sas.impl;

import com.aaa.aspect.InsertAnn;
import com.aaa.dao.sas.TesterSasDao;
import com.aaa.entity.sas.TesterSas;
import com.aaa.service.sas.TesterSasService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ：马明钢
 * @date ：Created in 2022/9/3 9:29
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class TesterSasServiceImpl implements TesterSasService {
    @Autowired
    TesterSasDao testerSasDao;

    @Override
    public TesterSas queryByPhone(String phone) {
        return testerSasDao.queryByPhone(phone);
    }

    @InsertAnn
    @Override
    public TesterSas insert(TesterSas testerSas) {
        this.testerSasDao.insert(testerSas);
        return testerSas;
    }
}
